package cn.dada.dadarecipes.community.favorites.pojo.vo;

import cn.dada.dadarecipes.community.article.pojo.vo.ArticleVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.time.LocalDateTime;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class FavoritesVO {
    @ApiModelProperty(value = "收藏表id")
    Long id;
    @ApiModelProperty(value = "收藏时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    LocalDateTime favoriteTime;

    // 关联表
    @ApiModelProperty(value = "文章信息")
    ArticleVO articleVO;
}
